Dual Syntax for XML Languages
نویسندگان
چکیده
XML is successful as a machine processable data interchange format, but it is often too verbose for human use. For this reason, many XML languages permit an alternative more legible non-XML syntax. XSLT stylesheets are often used to convert from the XML syntax to the alternative syntax; however, such transformations are not reversible since no general tool exists to automatically parse the alternative syntax back into XML. We present XSugar, which makes it possible to manage dual syntax for XML languages. An XSugar specification is built around a context-free grammar that unifies the two syntaxes of a language. Given such a specification, the XSugar tool can translate from alternative syntax to XML and vice versa. Moreover, the tool statically checks that the transformations are reversible and that all XML documents generated from the alternative syntax are valid according to a given XML schema.
منابع مشابه
A retrospective on the development of the RDF/XML Revised Syntax
This paper reviews the process that was undertaken in revising the transfer syntax for RDF as defined in the RDF Model and Syntax W3C Recommendation[1] by the RDF Core Working Group[2] and the problems that are now clear especially comparing the revised RDF model and new abstract syntax. The syntax looks out of date in particular with the use of XML QNames giving unconstrained syntax terms in t...
متن کاملBridging Concrete and Abstract Syntax of Web Rule Languages
This paper proposes a solution for bridging abstract and concrete syntax of a Web rule language by using model transformations. Current specifications of Web rule languages such as Semantic Web Rule Language (SWRL) define its abstract syntax (e.g., EBNF notation) and concrete syntax (e.g., XML schema) separately. Although the recent research in the area of Model-Driven Engineering demonstrates ...
متن کاملModel transformations to bridge concrete and abstract syntax of web rule languages
This paper presents a solution to bridging the abstract and concrete syntax of a Web rule languages by using model transformations. Current specifications of Web rule languages such as Semantic Web Rule Language (SWRL) or RuleML define their abstract syntax (e.g., metamodel) and concrete syntax (e.g., XML schema) separately. Although the recent research in the area of Model-Driven Engineering (...
متن کاملTowards Model-Driven Software Language Modernization
The introduction of Extensible Markup Language (XML) represented a tremendous leap towards the design of Domain-Specific Languages (DSLs). Although XML-based languages are well adopted and flexible, their generic editors miss modern DSL editor functionality. Additionally, artifacts defined with such languages lack comprehensibility and, therefore, maintainability, because XML has primarily been...
متن کاملPattern-Based Updates for the Web - Refinement of Syntax and Semantics in XChange
Several XML update languages have been developed in recent years, trying to fill a gap that was left behind by XML query and transformation languages. XML Update languages provide both an efficient and comfortable way of updating XML data, for which XML transformation languages are not feasible. One of them is the update language introduced as a part of the reactive language XChange. XChange’s ...
متن کامل